/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.academico.dao;

import java.io.Serializable;

/**
 *
 * @author caseware03
 *  "T" representa la entidad a persistir y "K" el tipo de la llave primaria de la entidad. 
 */
public interface BaseGenericDAO<T, K extends Serializable> {

    T create(T entity);

    T update(T entity);

    void delete(T entity);

    T findById(K key);
}